From 7abf2227438362ad30820ee236405ec1b57a40b6 Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Wed, 21 May 2025 17:13:11 +0700
Subject: m

---
 src/pages/lesson/[slug].tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/pages/lesson/[slug].tsx')

diff --git a/src/pages/lesson/[slug].tsx b/src/pages/lesson/[slug].tsx
index 9e6e6cc..9078958 100644
--- a/src/pages/lesson/[slug].tsx
+++ b/src/pages/lesson/[slug].tsx
@@ -52,8 +52,10 @@ export default async function HomePage(props: PageProps<"/lesson/[slug]">) {
   );
 }
 
-const getData = async (lesson: number, userId: number) => {
-  const lessons = db.fetchLesson(userId, lesson);
+const getData = async (lessonId: number, userId: number) => {
+  const lessons = db.fetchLesson({ userId, lessonId, random: true });
+  // const lessons = db.fetchLesson({ userId, lessonId, random: false, page: 3 });
+  console.log({ lessons });
 
   return lessons;
 };
-- 
cgit v1.2.3

